package pl.edu.mimuw.irs.rcp.controller.editor.workflow.dnd;

import org.eclipse.gef.requests.CreationFactory;

import pl.edu.mimuw.irs.core.model.design.resource.Requirement;

public class RequirementFactory implements CreationFactory {

	// *** Attributes

	private String id;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	// *** Methods

	public Object getNewObject() {
		Requirement requirement = new Requirement();
		requirement.setName(id);
		return requirement;
   	}

   	public Object getObjectType() {
   		return Requirement.class;
   	}

}
